
var path = "..";
var datalist = [
		path + "/img/load/load_figure.png",
		path + "/img/load/rocket.png",
		path + "/img/load/flag.png",
		path + "/img/load/star.png",
		path + "/img/load/sign.png",
		path + "/img/index/theme.png",
		path + "/img/index/mouth.png",
		path + "/img/index/mouth_center.png",
		path + "/img/index/left_blue.png",
		path + "/img/index/manleft.png",
		path + "/img/index/manright.png"
	];


//跳转到主页
var time = setInterval(function(){
	
},3000);

var per = new preload(datalist,3);
per.starload();

//事件代理
document.addEventListener("click",clickEvent,false);
//点击相应事件   
function clickEvent(event){
	var target = event.target;
	var cla = target.classList;
	var web = document.querySelector(".wrap");
	switch (true){
		case cla.contains("load_btn"):
			web.style.left = "-100%";
			break;
		case cla.contains("home_begin"):
			web.style.left = "-200%";
			break;
	}
}

//
